package cs342.uwosh.group1.mycontacts;

import android.R;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.widget.TextView;

public class Themes extends Activity{
	
	private static int theTheme;

	public final static int THEME_1 = 0;
	public final static int THEME_2 = 1;
	public final static int THEME_3 = 2;
	
	
	public static void changeToTheme(Activity activity, int theme)
	{
		theTheme = theme;
		activity.finish();
		activity.startActivity(new Intent(activity, activity.getClass()));
	}
	
	public static void onActivityCreateSetTheme(Activity activity)
	{
		switch (theTheme)
		{
		default:
		case THEME_1:
			activity.setTheme(R.style.Theme_DeviceDefault_Dialog);
			break;
		case THEME_2:
			activity.setTheme(R.style.Theme_Wallpaper);
			break;
		case THEME_3:
			activity.setTheme(R.style.Theme_Translucent);
			break;
		}
	}
}
